package com.zxy.ziems.server.device.mapper;

import com.zxy.ziems.server.device.pojo.entity.ProtocolEntity;
import com.zxy.ziems.server.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 协议关联
 * @author 10348359
 * @create 2024-03-25 9:42
 */

@Mapper
public interface ProtocolMapper extends BaseMapperX<ProtocolEntity> {

    /**
     * 根据通道通道id查询 当前协议
     * @param channelId
     * @return
     */
    ProtocolEntity selectByChannelId(@Param("channelId") String channelId);

    /**
     * 根据通道通道id列表查询 当前协议
     * @param channelIdList
     * @return
     */
    List<ProtocolEntity> selectByChannelIdList(@Param("channelIdList") Collection<String> channelIdList);
}
